/*
package com.cloud.tsp.controller;

import com.cloud.core.util.R;
import com.cloud.api.domain.tsp.QueryVehicleOwner;
import com.cloud.api.domain.tsp.VehicleOwner;
import com.cloud.api.constants.StrVo;
import com.cloud.log.annotation.Log;
import com.cloud.log.enums.BusinessType;
import com.cloud.log.enums.OperatorType;
import com.cloud.mybatis.domain.TableDataInfo;
import com.cloud.tsp.service.IVehicleOwnerService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.Valid;
import java.io.IOException;

*/
/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author haohaibo
 * @since 2023-11-27
 *//*

@RestController
@RequestMapping("/vehicle-owner")
public class VehicleOwnerController {

    @Resource
    private IVehicleOwnerService vehicleOwnerService;

    @Tag(name = "v1.0")
    @Operation(summary = "车主管理（管理）")
    @PostMapping("/getOwnerList")
    @Log(title = "车主管理-车主管理", businessType = BusinessType.OTHER, operatorType = OperatorType.MANAGE)
    public TableDataInfo<VehicleOwner> selectOwnerList(@RequestBody @Valid QueryVehicleOwner para){
        return vehicleOwnerService.selectOwnerList(para);
    }

    @Tag(name = "v1.0")
    @Operation(summary = "新增或修改车主信息（管理）")
    @PostMapping("/insertOrUpdate")
    @Log(title = "车主管理-新增或修改车主信息", businessType = BusinessType.OTHER, operatorType = OperatorType.MANAGE)
    public R insertOrUpdate(@RequestBody @Valid VehicleOwner para){
        vehicleOwnerService.insertOrUpdate(para);
        return R.ok();
    }

    @Tag(name = "v1.0")
    @Operation(summary = "删除车主信息（管理）")
    @PostMapping("/deleteById")
    @Log(title = "车主管理-删除车主信息", businessType = BusinessType.DELETE, operatorType = OperatorType.MANAGE)
    public R deleteById(@RequestBody @Valid StrVo para){
        vehicleOwnerService.removeById(para.getId());
        return R.ok();
    }

    @Tag(name = "v1.0")
    @Operation(summary = "导出车主信息表")
    @PostMapping("/exportOwnerList")
    @Log(title = "车主管理-导出车主信息表", businessType = BusinessType.EXPORT, operatorType = OperatorType.MANAGE)
    public void exportOwnerList(QueryVehicleOwner para, HttpServletResponse response) throws IOException {
        vehicleOwnerService.exportOwnerList(para,response);
    }
}*/
